<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1024导航 - 优质资源聚合平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="#" class="text-primary font-medium">首页</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">资源</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="#" class="text-gray-600 hover:text-primary transition-colors">关于</a>
            </nav>

            <div class="flex items-center space-x-3">
                <button
                    class="hidden md:block px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                    <i class="fa fa-user-plus mr-1"></i> 登录
                </button>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 搜索区域 -->
    <section class="py-10 bg-gradient-to-b from-white to-gray-50">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto text-center">
                <h1 class="text-[clamp(1.8rem,5vw,2.5rem)] font-bold mb-4 text-gradient">
                    发现优质互联网资源
                </h1>
                <p class="text-gray-600 mb-8">精选工具、学习资料、实用网站，助力高效生活与工作</p>

                <div class="relative">
                    <input type="text" placeholder="搜索资源、工具或教程..."
                        class="w-full px-5 py-4 rounded-lg shadow-md border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary transition-all">
                    <button
                        class="absolute right-2 top-2 bottom-2 px-5 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                        <i class="fa fa-search mr-1"></i> 搜索
                    </button>
                </div>

                <div class="mt-4 flex flex-wrap justify-center gap-2 text-sm">
                    <span class="text-gray-500">热门搜索:</span>
                    <a href="#" class="text-gray-600 hover:text-primary">AI工具</a>
                    <a href="#" class="text-gray-600 hover:text-primary">设计资源</a>
                    <a href="#" class="text-gray-600 hover:text-primary">编程学习</a>
                    <a href="#" class="text-gray-600 hover:text-primary">影视网站</a>
                    <a href="#" class="text-gray-600 hover:text-primary">PPT模板</a>
                </div>
            </div>
        </div>
    </section>

    <!-- 分类导航 -->
    <section class="py-8 bg-white">
        <div class="container mx-auto px-4">
            <div class="flex overflow-x-auto pb-4 hide-scrollbar gap-4">
                <button class="whitespace-nowrap px-5 py-2 bg-primary text-white rounded-full">
                    全部资源
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-code mr-1"></i> 开发工具
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-paint-brush mr-1"></i> 设计资源
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-graduation-cap mr-1"></i> 学习教育
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-film mr-1"></i> 影音娱乐
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-shopping-cart mr-1"></i> 电商购物
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-tools mr-1"></i> 实用工具
                </button>
                <button
                    class="whitespace-nowrap px-5 py-2 bg-gray-100 text-gray-700 rounded-full hover:bg-gray-200 transition-colors">
                    <i class="fa fa-image mr-1"></i> 图片素材
                </button>
            </div>
        </div>
    </section>

    <!-- 推荐资源 -->
    <section class="py-10 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold text-gray-800">
                    <i class="fa fa-star text-accent mr-2"></i> 推荐资源
                </h2>
                <a href="#" class="text-primary hover:underline text-sm">查看全部 <i class="fa fa-angle-right ml-1"></i></a>
            </div>

            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-5">
                <!-- 资源卡片1 -->
                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-start justify-between mb-4">
                        <div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center text-primary">
                            <i class="fa fa-code"></i>
                        </div>
                        <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">开发工具</span>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">在线代码编辑器</h3>
                    <p class="text-gray-500 text-sm mb-4 line-clamp-2">无需安装，在线编写和运行多种编程语言代码，支持实时预览</p>
                    <div class="flex justify-between items-center">
                        <span class="text-xs text-gray-400">
                            <i class="fa fa-eye mr-1"></i> 12.5k
                        </span>
                        <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                class="fa fa-external-link ml-1"></i></a>
                    </div>
                </div>

                <!-- 资源卡片2 -->
                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-start justify-between mb-4">
                        <div
                            class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center text-purple-600">
                            <i class="fa fa-paint-brush"></i>
                        </div>
                        <span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">设计资源</span>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">免费UI设计模板</h3>
                    <p class="text-gray-500 text-sm mb-4 line-clamp-2">精选高质量UI设计模板，可直接下载使用，支持Figma和Sketch</p>
                    <div class="flex justify-between items-center">
                        <span class="text-xs text-gray-400">
                            <i class="fa fa-eye mr-1"></i> 8.3k
                        </span>
                        <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                class="fa fa-external-link ml-1"></i></a>
                    </div>
                </div>

                <!-- 资源卡片3 -->
                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-start justify-between mb-4">
                        <div class="w-10 h-10 rounded-lg bg-amber-100 flex items-center justify-center text-amber-600">
                            <i class="fa fa-graduation-cap"></i>
                        </div>
                        <span class="text-xs bg-amber-100 text-amber-800 px-2 py-1 rounded-full">学习教育</span>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">编程学习路径</h3>
                    <p class="text-gray-500 text-sm mb-4 line-clamp-2">从入门到精通的完整编程学习路径，包含视频教程和实战项目</p>
                    <div class="flex justify-between items-center">
                        <span class="text-xs text-gray-400">
                            <i class="fa fa-eye mr-1"></i> 15.7k
                        </span>
                        <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                class="fa fa-external-link ml-1"></i></a>
                    </div>
                </div>

                <!-- 资源卡片4 -->
                <div class="bg-white rounded-xl shadow-sm p-5 card-hover">
                    <div class="flex items-start justify-between mb-4">
                        <div class="w-10 h-10 rounded-lg bg-red-100 flex items-center justify-center text-red-600">
                            <i class="fa fa-film"></i>
                        </div>
                        <span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">影音娱乐</span>
                    </div>
                    <h3 class="font-semibold text-gray-800 mb-2">高清影视资源</h3>
                    <p class="text-gray-500 text-sm mb-4 line-clamp-2">免费观看高清电影和电视剧，无广告干扰，更新及时</p>
                    <div class="flex justify-between items-center">
                        <span class="text-xs text-gray-400">
                            <i class="fa fa-eye mr-1"></i> 23.1k
                        </span>
                        <a href="#" class="text-primary text-sm hover:underline">访问 <i
                                class="fa fa-external-link ml-1"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 最新收录 -->
    <section class="py-10 bg-white">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold text-gray-800">
                    <i class="fa fa-clock-o text-primary mr-2"></i> 最新收录
                </h2>
                <a href="#" class="text-primary hover:underline text-sm">查看全部 <i class="fa fa-angle-right ml-1"></i></a>
            </div>

            <div class="overflow-hidden">
                <table class="w-full min-w-[640px]">
                    <thead>
                        <tr class="border-b border-gray-200">
                            <th class="text-left py-3 px-2 text-gray-600 font-medium">名称</th>
                            <th class="text-left py-3 px-2 text-gray-600 font-medium">分类</th>
                            <th class="text-left py-3 px-2 text-gray-600 font-medium">描述</th>
                            <th class="text-left py-3 px-2 text-gray-600 font-medium">热度</th>
                            <th class="text-left py-3 px-2 text-gray-600 font-medium">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="border-b border-gray-100 hover:bg-gray-50 transition-colors">
                            <td class="py-3 px-2">
                                <div class="flex items-center">
                                    <div
                                        class="w-8 h-8 rounded bg-blue-100 flex items-center justify-center text-primary mr-2">
                                        <i class="fa fa-file-text-o text-sm"></i>
                                    </div>
                                    <span>在线文档转换工具</span>
                                </div>
                            </td>
                            <td class="py-3 px-2 text-sm text-gray-600">实用工具</td>
                            <td class="py-3 px-2 text-sm text-gray-500 max-w-xs truncate">支持多种格式文档在线转换，无需安装软件</td>
                            <td class="py-3 px-2 text-sm text-gray-500">
                                <i class="fa fa-fire text-orange-500 mr-1"></i> 1.2k
                            </td>
                            <td class="py-3 px-2">
                                <a href="#" class="text-primary text-sm hover:underline">访问</a>
                            </td>
                        </tr>
                        <tr class="border-b border-gray-100 hover:bg-gray-50 transition-colors">
                            <td class="py-3 px-2">
                                <div class="flex items-center">
                                    <div
                                        class="w-8 h-8 rounded bg-green-100 flex items-center justify-center text-green-600 mr-2">
                                        <i class="fa fa-image text-sm"></i>
                                    </div>
                                    <span>免费图库</span>
                                </div>
                            </td>
                            <td class="py-3 px-2 text-sm text-gray-600">图片素材</td>
                            <td class="py-3 px-2 text-sm text-gray-500 max-w-xs truncate">高质量无版权图片资源，可免费商用</td>
                            <td class="py-3 px-2 text-sm text-gray-500">
                                <i class="fa fa-fire text-orange-500 mr-1"></i> 3.5k
                            </td>
                            <td class="py-3 px-2">
                                <a href="#" class="text-primary text-sm hover:underline">访问</a>
                            </td>
                        </tr>
                        <tr class="border-b border-gray-100 hover:bg-gray-50 transition-colors">
                            <td class="py-3 px-2">
                                <div class="flex items-center">
                                    <div
                                        class="w-8 h-8 rounded bg-purple-100 flex items-center justify-center text-purple-600 mr-2">
                                        <i class="fa fa-music text-sm"></i>
                                    </div>
                                    <span>无损音乐下载</span>
                                </div>
                            </td>
                            <td class="py-3 px-2 text-sm text-gray-600">影音娱乐</td>
                            <td class="py-3 px-2 text-sm text-gray-500 max-w-xs truncate">免费下载高品质无损音乐，多种格式可选</td>
                            <td class="py-3 px-2 text-sm text-gray-500">
                                <i class="fa fa-fire text-orange-500 mr-1"></i> 5.7k
                            </td>
                            <td class="py-3 px-2">
                                <a href="#" class="text-primary text-sm hover:underline">访问</a>
                            </td>
                        </tr>
                        <tr class="border-b border-gray-100 hover:bg-gray-50 transition-colors">
                            <td class="py-3 px-2">
                                <div class="flex items-center">
                                    <div
                                        class="w-8 h-8 rounded bg-amber-100 flex items-center justify-center text-amber-600 mr-2">
                                        <i class="fa fa-book text-sm"></i>
                                    </div>
                                    <span>电子书库</span>
                                </div>
                            </td>
                            <td class="py-3 px-2 text-sm text-gray-600">学习教育</td>
                            <td class="py-3 px-2 text-sm text-gray-500 max-w-xs truncate">海量电子书籍免费下载，涵盖各类学科</td>
                            <td class="py-3 px-2 text-sm text-gray-500">
                                <i class="fa fa-fire text-orange-500 mr-1"></i> 4.2k
                            </td>
                            <td class="py-3 px-2">
                                <a href="#" class="text-primary text-sm hover:underline">访问</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>

    <!-- 工具推荐 -->
    <section class="py-10 bg-gray-50">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold text-gray-800">
                    <i class="fa fa-wrench text-accent mr-2"></i> 实用工具
                </h2>
                <a href="#" class="text-primary hover:underline text-sm">更多工具 <i class="fa fa-angle-right ml-1"></i></a>
            </div>

            <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 lg:grid-cols-7 gap-4">
                <!-- 工具1 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center text-primary mx-auto mb-3">
                        <i class="fa fa-calculator"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">计算器</h3>
                </div>

                <!-- 工具2 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center text-green-600 mx-auto mb-3">
                        <i class="fa fa-translate"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">翻译</h3>
                </div>

                <!-- 工具3 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center text-purple-600 mx-auto mb-3">
                        <i class="fa fa-link"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">短链接</h3>
                </div>

                <!-- 工具4 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-amber-100 flex items-center justify-center text-amber-600 mx-auto mb-3">
                        <i class="fa fa-bar-chart"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">数据统计</h3>
                </div>

                <!-- 工具5 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center text-red-600 mx-auto mb-3">
                        <i class="fa fa-image"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">图片压缩</h3>
                </div>

                <!-- 工具6 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-teal-100 flex items-center justify-center text-teal-600 mx-auto mb-3">
                        <i class="fa fa-clock-o"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">时区转换</h3>
                </div>

                <!-- 工具7 -->
                <div class="bg-white rounded-lg p-4 text-center card-hover">
                    <div
                        class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 mx-auto mb-3">
                        <i class="fa fa-plus"></i>
                    </div>
                    <h3 class="text-sm font-medium text-gray-800">更多</h3>
                </div>
            </div>
        </div>
    </section>

    <!-- 公告栏 -->
    <section class="py-8 bg-white">
        <div class="container mx-auto px-4">
            <div class="bg-blue-50 border-l-4 border-primary p-4 rounded-r-lg">
                <div class="flex items-start">
                    <div class="text-primary mr-3 mt-0.5">
                        <i class="fa fa-bullhorn text-xl"></i>
                    </div>
                    <div>
                        <h3 class="font-medium text-gray-800 mb-1">网站公告</h3>
                        <p class="text-gray-600 text-sm">本站已完成服务器升级，访问速度提升50%。新增AI工具分类，欢迎体验！如有任何问题，请联系客服。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源分类</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">免责声明</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-6 text-center text-sm text-gray-500">
                <p>© 2023 1024导航. 本站资源仅供学习交流使用，如有侵权请联系删除。</p>
            </div>
        </div>
    </footer>

    <!-- 回到顶部按钮 -->
    <button id="backToTop"
        class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white shadow-lg flex items-center justify-center opacity-0 invisible transition-all duration-300">
        <i class="fa fa-arrow-up"></i>
    </button>

    <script>
        // 回到顶部按钮功能
        const backToTopBtn = document.getElementById('backToTop');

        window.addEventListener('scroll', () => {
            if (window.scrollY > 300) {
                backToTopBtn.classList.remove('opacity-0', 'invisible');
                backToTopBtn.classList.add('opacity-100', 'visible');
            } else {
                backToTopBtn.classList.remove('opacity-100', 'visible');
                backToTopBtn.classList.add('opacity-0', 'invisible');
            }

            // 导航栏滚动效果
            const header = document.querySelector('header');
            if (window.scrollY > 50) {
                header.classList.add('py-2', 'shadow');
                header.classList.remove('py-3', 'shadow-sm');
            } else {
                header.classList.add('py-3', 'shadow-sm');
                header.classList.remove('py-2', 'shadow');
            }
        });

        backToTopBtn.addEventListener('click', () => {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });

        // 简单的搜索功能模拟
        const searchInput = document.querySelector('input[placeholder="搜索资源、工具或教程..."]');
        const searchButton = document.querySelector('button:has(.fa-search)');

        function handleSearch() {
            const query = searchInput.value.trim();
            if (query) {
                alert(`正在搜索: ${query}\n在实际应用中，这里会跳转到搜索结果页面`);
            } else {
                alert('请输入搜索内容');
            }
        }

        searchButton.addEventListener('click', handleSearch);
        searchInput.addEventListener('keypress', (e) => {
            if (e.key === 'Enter') {
                handleSearch();
            }
        });
    </script>
</body>

</html>